
#ifndef _MEMBER_BMOTION_H_
#define _MEMBER_BMOTION_H_

#include <BMotion>

#define motion_member(motion)		((member_BMotion*)((BMotion*)motion)->_ptr)

namespace BWE
{
	typedef double(*GetValueAt_Func)(double t);

	class member_BMotion
	{
	public:
		member_BMotion(BMotion* motion);
		~member_BMotion();

		void freshFunction();

	public:
		BMotion*				boss;
		MotionType				type;
		GetValueAt_Func			func;
		bool					loop;
		bool					started;
		double					startTime;
		double					startValue;
		double					time;
		double					value;
		double					unit;
		double					duration;
	};
}

#endif